package com.lanto.water.entity

//import com.chad.library.adapter.base.entity.MultiItemEntity
import com.lanto.water.model.bean.WaterInfo

/**
 *Created by zxn on 2021/4/8.
 **/
class DrinkChooseEntity(/*override*/ val itemType: Int = DrinkChooseEntity.ITEM_LINE, val data: WaterInfo? = null) /*: MultiItemEntity*/ {

    companion object {
        /**
         * 饮料实体.
         */
        const val ITEM_DRINK = 0

        /**
         * 分割线.
         */
        const val ITEM_LINE = 1

        /**
         *正常条目
         */
        const val DRINK_SPAN_SIZE = 1

        /**
         *跨个3
         */
        const val LINE_SPAN_SIZE = 3

    }

    //constructor(itemType: Int, val data: WaterInfo? = null) : this(itemType)

    var spanSize = if (itemType == ITEM_DRINK) DRINK_SPAN_SIZE else LINE_SPAN_SIZE


}